package com.yunshang.shoppingmall.service.impl;

import com.yunshang.shoppingmall.entity.ProductADV;
import com.yunshang.shoppingmall.mapper.ProductADVMapper;
import com.yunshang.shoppingmall.service.ProductADVService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service(" productADVService")
public class ProductADVServiceImpl implements ProductADVService {

    @Autowired
    ProductADVMapper productADVMapper;


    @Override
    public int deleteByPrimaryKey(Integer advId) {
        return 0;
    }

    @Override
    public int insert(ProductADV record) {
        return 0;
    }

    @Override
    public int insertSelective(ProductADV record) {
        return 0;
    }

    /**
     * 根据广告图id查询广告图
     * @param advId
     * @return
     */
    @Override
    public ProductADV selectByPrimaryKey(Integer advId) {
        return productADVMapper.selectByPrimaryKey(advId);
    }

    @Override
    public int updateByPrimaryKeySelective(ProductADV record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(ProductADV record) {
        return 0;
    }

    @Override
    public List<ProductADV> selectProductADVBySign(String advSign) {
        return productADVMapper.selectProductADVBySign(advSign);
    }
}
